package com.tem.purchase.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品规格
 * </p>
 *
 * @author 腾木
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_gg")
@ApiModel(value="ProductGg对象", description="产品规格")
public class ProductGg implements Serializable {
    private static final long serialVersionUID=45678780122341L;
    @ApiModelProperty(value = "规格种类")
    @TableId(value = "product_gg_id", type = IdType.AUTO)
    private Long productGgId;

    @ApiModelProperty(value = "产品")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "规格名称")
    @TableField("type_name")
    private String typeName;

    @ApiModelProperty(value = "关联电商产品id")
    @TableField("shopping_product_id")
    private Long shoppingProductId;

    @ApiModelProperty(value = "条形码")
    @TableField("bar_code")
    private String barCode;

    @ApiModelProperty(value = "计量单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "预计进价")
    @TableField("estimated_price")
    private BigDecimal estimatedPrice;

    @ApiModelProperty(value = "最高进价")
    @TableField("highest_price")
    private BigDecimal highestPrice;

    @ApiModelProperty(value = "库存下限")
    @TableField("lower_limit")
    private BigDecimal lowerLimit;

    @ApiModelProperty(value = "库存上限")
    @TableField("Inventory_limit")
    private BigDecimal inventoryLimit;

    @ApiModelProperty(value = "图片")
    @TableField("img")
    private String img;

    @ApiModelProperty(value = "备注")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "最低售价")
    @TableField("selling_price")
    private BigDecimal sellingPrice;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
